package com.oop.ch05;

public final class Dog extends Pet {
	private double loay;//忠诚度
	
	public double getLoay() {
		return loay;
	}
	
	public void setLoay(double loay) {
		this.loay = loay;
	}
	
	//是实现了抽象类---Pet中的抽象方法print
	public void print() {
		System.out.println("小狗的独白：主人你好，我是可爱的"+this.getName()+"，今年"+this.getAge()+"岁了，我是一只"+this.getSex()+"的"+this.getType()+"，体重"+this.getWeight()+"公斤，我与主人的忠诚度为："+this.getLoay());
	}
	
	
}
